package com.example.a22310.myapplication.Activity;


import android.content.SharedPreferences;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.a22310.myapplication.ViewModel.Personal.SystemNewsViewModel;
import com.example.a22310.myapplication.databinding.ActivitySystemNewsBinding;

public class SystemNews extends AppCompatActivity {
    private ActivitySystemNewsBinding binding;
    private SharedPreferences sharedPreferences;
    private int userid;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_system_news);
        sharedPreferences = getSharedPreferences("yuejian'data", this.MODE_PRIVATE);
        userid =  sharedPreferences.getInt("userId",-1);
        new SystemNewsViewModel(this, binding,userid,userid);
    }



}
